{% extends "mall_base.html" %}
{% block title %}
<title>用户中心</title>
{% endblock %}
{% block content %}
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h1>消费历史</h1>

            <table class="table table-bordered">
                <tr>
                    <th>订单号</th>
                    <th>消费金额</th>
                    <th>消费日期</th>
                </tr>
                {% for orderitem in order_list %}
                <tr>
                    <td>{{ orderitem.id }}</td>
                    <td>{{ orderitem.total_price }}￥</td>
                    <td>{{ orderitem.update_time }}</td>
                </tr>
                {% endfor %}
            </table>
        </div>
    </div>
</div>
{% endblock %}